// wgllight.cpp
//

#include "config.h"
#include "wgl/wgllight.hpp"

using namespace wgl;



// Light::Light
//
Light::Light ( LightType type )
  : type(type)
{
}



// Light::set_type
//
void Light::set_type ( LightType type )
{
  this->type = type;
}



// Light::set_position
//
void Light::set_position ( glm::vec3 position )
{
  this->position = position;
}



// Light::set_color
//
void Light::set_color ( glm::vec3 color )
{
  ambient = glm::vec4(color, ambient.w);
  diffuse = glm::vec4(color, diffuse.w);
  specular = glm::vec4(color, specular.w);
}



// Light::set_levels
//
void Light::set_levels ( float ambient,
                         float diffuse,
                         float specular )
{
  this->ambient.w = ambient;
  this->diffuse.w = diffuse;
  this->specular.w = specular;
}
